<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>16-字符串拼接</title>
    <script>
        //1. 检测获取字符串的长度 length
        var str = 'my name is jiaojiao';
        console.log(str.length);//19
        // 字符串的拼接 +
        console.log('沙漠' + '骆驼');//沙漠骆驼
        console.log('骄骄' + 21);//骄骄21
        console.log('骄骄' + true);//骄骄true
        console.log(12 + 12);//24
        console.log('12' + 12);//1212
    </script>
</head>

<body>

</body>

</html>